CC = iccavr
LIB = ilibw
CFLAGS =  -e -D__ICC_VERSION=722 -DATMega16  -l -g -MLongJump -MHasMul -MEnhanced 
ASFLAGS = $(CFLAGS) 
LFLAGS =  -g -e:0x4000 -ucrtatmega.o -bfunc_lit:0x54.0x4000 -dram_end:0x45f -bdata:0x60.0x45f -dhwstk_size:30 -beeprom:0.512 -fihx_coff -S2
FILES = Communication.o Init.o main.o Sample.o Timer.o 

TEMP:	$(FILES)
	$(CC) -o TEMP $(LFLAGS) @TEMP.lk   -lcatmega
Communication.o: .\iom16v.h .\macros.h .\Parameter.h .\Communication.h .\Timer.h .\Init.h C:\iccv7avr\include\eeprom.h .\Sample.h C:\iccv7avr\include\STRING.H C:\iccv7avr\include\_const.h
Communication.o:	Communication.c
	$(CC) -c $(CFLAGS) Communication.c
Init.o: .\iom16v.h .\macros.h .\Parameter.h .\Init.h .\Timer.h .\Sample.h C:\iccv7avr\include\eeprom.h
Init.o:	Init.c
	$(CC) -c $(CFLAGS) Init.c
main.o: .\iom16v.h .\macros.h .\Parameter.h .\Timer.h .\Init.h .\Sample.h
main.o:	main.c
	$(CC) -c $(CFLAGS) main.c
Sample.o: .\iom16v.h .\macros.h .\Parameter.h .\Sample.h .\Timer.h
Sample.o:	Sample.c
	$(CC) -c $(CFLAGS) Sample.c
Timer.o: .\iom16v.h .\macros.h .\Parameter.h
Timer.o:	Timer.c
	$(CC) -c $(CFLAGS) Timer.c
